# -*- coding: utf-8 -*-
# @Time        :2024/10/11 下午6:36
# @Author      :文刀水寿
# @File        : 06_封装practice.py
"""
 @Description :
"""


class Phone:
    __is_5g_enable = False

    def __check_5g(self):
        if self.__is_5g_enable:
            print("5g开启")
        else:
            print("5g关闭,使用4g网络")

    def call_by_5g(self):
        self.__check_5g()
        print("正在通话中")


phone = Phone()
phone.call_by_5g()
